package com.bo.ioc.repo;

import com.bo.ioc.model.UserInfo;
import com.bo.ioc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class UserRepo {
    public UserService userService;
    @Autowired //若只有一个构造方法,可以省略
    public UserRepo(UserService userService){
        this.userService = userService;
    }
    public void run(){
        System.out.println("User Repo...");
    }
    public void thoRun(){
        userService.run();
    }
}
